package com.suixun.vo.credits;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 新增,详情,商品档案vo
 * 
 * @author yh
 * @date 2017年12月13日
 */
public class GoodsArchivesDetailsVo extends GoodsArchivesVo {

    private static final long serialVersionUID = 4846271098958577755L;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 商品类型显示名:1免费券2特价券3抵用券4折扣券
     */
    private String goodsTypeName;

    /**
     * 商户名称
     */
    private String companyName;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getGoodsTypeName() {
        switch (this.getGoodsType()) {
        case 1:
            return "免费券";
        case 2:
            return "特价券";
        case 3:
            return "抵用券";
        case 4:
            return "折扣券";
        }
        return goodsTypeName;
    }

    public void setGoodsTypeName(String goodsTypeName) {
        this.goodsTypeName = goodsTypeName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

}